package com.sharding.transaction.demo;

import com.alibaba.druid.pool.DruidDataSource;
import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean;
import io.seata.rm.datasource.xa.DataSourceProxyXA;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import javax.annotation.Resource;
import javax.sql.DataSource;

@Configuration
public class XaDataSourceConfiguration {

//    @Primary
//    @Bean("dataSource")
//    public DataSource dataSource(DataSource druidDataSource) {
//        return new DataSourceProxyXA(druidDataSource);
//    }


}
